package com.hdoit.pisces.web.rel.modelconfig;

import com.tennetcn.common.enums.regular.RegularExpressions;
import com.tennetcn.component.attribute.DateAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RegularExpressionAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;
import com.tennetcn.web.cbase.providers.SexProvider;

public class RelationshipConfig extends ModelMetadataAttributeConfiguration {
		public RelationshipConfig(){
		this.setProperty("employeeName")
			.hasAttribute(new DisplayNameAttribute("亲属子女"))
			.hasAttribute(new RequiredAttribute("亲属子女必填项"));
		
		this.setProperty("relative_firstName")
			.hasAttribute(new DisplayNameAttribute("亲属姓"))
			.hasAttribute(new RequiredAttribute("亲属姓为必填项"));
		
		this.setProperty("relative_lastName")
		.hasAttribute(new DisplayNameAttribute("亲属名"))
		.hasAttribute(new RequiredAttribute("亲属名为必填项"));
		
		this.setProperty("relationship")
			.hasAttribute(new DisplayNameAttribute("亲属关系"))
			.hasAttribute(new RequiredAttribute("亲属关系为必填项"));
		}
}
